package com.glela.dv.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.github.pagehelper.PageHelper;
import com.glela.dv.beans.PageBean;
import com.glela.dv.beans.SearchBean;
import com.glela.dv.dao.IKeepDao;
import com.glela.dv.mapper.KeepMapper;
import com.glela.dv.vo.KeepVo;

/**
 * @author liujie
 * @date 2016年4月14日
 *
 */
@Repository
public class KeepDao implements IKeepDao{
	@Autowired
	KeepMapper keepMapper;

	@Override
	public List<KeepVo> queryKeepByCondition(PageBean pageBean) {
		PageHelper.startPage(pageBean.getPage(), pageBean.getRows());
		return keepMapper.queryKeepByCondition(pageBean);
	}

	@Override
	public List<KeepVo> queryKeepByCondition(SearchBean searchBean) {
		return keepMapper.queryKeepByCondition(searchBean);
	}
	
}
